public class Rect extends Shape{
    public int a;
    public int b;

    public Rect(int a, int b) {
        this.a = a;
        this.b = b;
    }

    @Override
    public void draw() {
        System.out.println("长 = "+ a + "宽 = "+ b);
    }

    @Override
    public void calcArea() {
        area = a*b;
    }
}
